package com.baoyanghui.common;

public class Constants {
	/* 数据库表名 */
	public static final String DB_PREFIX = 				"cm_";
	public static final String TABLE_APK_VERSION = 		DB_PREFIX + "apk_version";
	public static final String TABLE_CAR_INFO = 		DB_PREFIX + "car_info";
	public static final String TABLE_CUSTOMER = 		DB_PREFIX + "customer";
	public static final String TABLE_CUSTOMER_AUTHORIZATION = 		DB_PREFIX + "customer_authorization";
	public static final String TABLE_ITEM = 			DB_PREFIX + "item";
	public static final String TABLE_ITEM_BRAND = 		DB_PREFIX + "item_brand";
	public static final String TABLE_ITEM_TYPE = 		DB_PREFIX + "item_type";
	public static final String TABLE_ITEM_PERIOD = 		DB_PREFIX + "item_period";
	public static final String TABLE_ITEM_SHORTCUT = 	DB_PREFIX + "item_shortcut";
	public static final String TABLE_REGION = 			DB_PREFIX + "region";
	public static final String TABLE_MAINTAIN_ITEM = 	DB_PREFIX + "maintain_item";
	public static final String TABLE_MAINTAIN_ORDER = 	DB_PREFIX + "maintain_order";
	public static final String TABLE_MESSAGE_SEND = 	DB_PREFIX + "message_send";
	public static final String TABLE_MESSAGE_RECEIVE = 	DB_PREFIX + "message_receive";
	public static final String TABLE_MERCHANT = 		DB_PREFIX + "merchant";
	public static final String TABLE_MERCHANT_PHOTO = 	DB_PREFIX + "merchant_photo";
	public static final String TABLE_MERCHANT_PLACE = 	DB_PREFIX + "merchant_place";
	public static final String TABLE_MERCHANT_PLACE_COOP = 	DB_PREFIX + "merchant_place_coop";
	public static final String TABLE_PLACE_TYPE = 	DB_PREFIX + "place_type";
	public static final String TABLE_PLACE_COMMENT = 	DB_PREFIX + "place_comment";
	public static final String TABLE_PLACE_PHOTO = 		DB_PREFIX + "place_photo";
	public static final String TABLE_REQUEST = 			DB_PREFIX + "request";
	public static final String TABLE_USER_CODE = 		DB_PREFIX + "usercode";

	public static final String VIEW_PLACE_COMMENT_SINGLE = 		DB_PREFIX + "view_place_comment_single";
	
	/* 结果代码 */
	public static final int CODE_SUCCESS = 				0;		//成功
	public static final int CODE_FAIL = 				999999;	//失败
	public static final int CODE_EXCEPTION = 			900000; //发生异常
	public static final int CODE_WRONG_PARAMATER = 		900001; //参数错误
	public static final int CODE_USER_OR_PWD_ERROR = 	900002; //用户名或密码错误
	public static final int CODE_SIGN_ERROR = 			900003; //签名错误
	public static final int CODE_MISS_PARAMATER = 		900004; //参数不全
	public static final int CODE_LICENSE_EXIST = 		900005; //车牌已存在
	public static final int CODE_USERNAME_EXIST = 		900006; //用户名已存在
	public static final int CODE_EMAIL_EXIST = 			900007; //邮箱已存在

	/* 返回信息 */
	public static final String MESSAGE_SUCCESS = 			"成功";
	public static final String MESSAGE_FAIL = 				"失败";
	public static final String MESSAGE_EXCETION = 			"系统错误";
	public static final String MESSAGE_NO_DATA = 			"结果为空";
	public static final String MESSAGE_WRONG_PARAMATER = 	"参数错误";
	public static final String MESSAGE_MISS_PARAMATER = 	"参数不全";
	public static final String MESSAGE_WRONG_USER_OR_PWD = 	"用户名或密码错误";
	public static final String MESSAGE_WRONG_SIGN = 		"参数签名错误";
	public static final String MESSAGE_LICENSE_EXIST = 		"车牌已存在";
	public static final String MESSAGE_USERNAME_EXISIST = 	"用户名已存在";
	public static final String MESSAGE_EMAIL_EXISIST =	 	"邮箱已存在";
	
	/* SESSION键 */
	public static final String SESSION_UPLOAD_COUNT = 		"carmaintain_upload_count";
	
	/* 用户类型 */
	public static final int USER_TYPE_CUSTOMER = 0;
	public static final int USER_TYPE_MERCHANT = 1;
	
	/* 商家认证状态 */
	public static final int MERCHANT_UNAUTHED = 0;
	public static final int MERCHANT_WAITING_AUTH = 1;
	public static final int MERCHANT_AUTHED = 2;
	
	/* 经营地址分类 */
	public static final int PLACE_TYPE_NORMAL = 0;
	public static final int PLACE_TYPE_COOP = 1;
	public static final int PLACE_TYPE_ALL = 2;
	
	/* 养护状态 */
	public static final int MAINTAIN_STATUS_WAIT = 0;
	public static final int MAINTAIN_STATUS_WAIT_CONFIRM = 1;
	public static final int MAINTAIN_STATUS_WAIT_COMMENT = 2;
	public static final int MAINTAIN_STATUS_COMMENT_COMPLETE = 3;
	public static final int MAINTAIN_STATUS_CANCELED = 4;
	public static final int MAINTAIN_STATUS_MAINTAIN_COMPLETE = 9;
	
	/* 经营地址审核状态 */
	public static final int PLACE_STATUS_UNVERIFIED = 0;
	public static final int PLACE_STATUS_WAITING_VERIFY = 1;
	public static final int PLACE_STATUS_VERIFIED = 2;
	public static final int PLACE_STATUS_VERIFY_FAIL = 3;
	
	/* 合作地址授权状态 */
	public static final int COOP_PLACE_STATUS_UNREQUEST = 0;
	public static final int COOP_PLACE_STATUS_UNAUTHORIZED = 1;
	public static final int COOP_PLACE_STATUS_AUTHORIZED = 2;
	
	/* 请求类型 */
	public static final int REQUEST_TYPE_MAINTAIN = 0;
	public static final int REQUEST_TYPE_HELP = 1;
	
	/* 请求状态 */
	public static final int REQUEST_STATUS_WAITING = 0;
	public static final int REQUEST_STATUS_ACCEPTED = 1;
	public static final int REQUEST_STATUS_CANCELED = 2;
	
	/* 消息状态 */
	public static final int MSG_STATUS_WRITING = 0;
	public static final int MSG_STATUS_SENT = 1;
	public static final int MSG_STATUS_UNREAD = 0;
	public static final int MSG_STATUS_READ = 1;
	
	/* 消息类型 */
	public static final int MSG_TYPE_MERCHANT_TO_CUSTOMER = 0;
	public static final int MSG_TYPE_CUSTOMER_TO_MERCHANT = 1;
	
	/* 消息分类 */
	public static final int MSG_TYPE_RECEIVE = 1;
	public static final int MSG_TYPE_DRAFT = 2;
	public static final int MSG_TYPE_SENT = 3;
}
